fix(webkit): interpolate translate so panel swaps slide instead of popping - #826
Merged
Conversation
…pping The panel transition listed only `transform, opacity`. Tailwind v4 compiles `translate-x-*` to the standalone `translate` property - its `.transform` utility now composes only rotate/skew - so the slide offset was never interpolated: the panel snapped to its final position while the fade played, and the swap read as a pop. Tailwind's own `transition-transform` expands to `transform, translate, scale, rotate` for exactly this reason. Adds `translate` to the list. The preset is shared, so this also fixes the Calendar month strip that renders through it. <Transition> is stubbed by Vue Test Utils, so the rendered animation cannot be asserted; the new test pins the css contract behind it instead. Verified in real Chromium that a mid-flight sample sits at its final value without the fix.
robsongajunior
approved these changes
Jul 29, 2026
robsongajunior
approved these changes
Jul 29, 2026
isaquebock
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The shared panel transition listed only
transform, opacity. Tailwind v4 compilestranslate-x-*to the standalonetranslateproperty (translate: var(--tw-translate-x) var(--tw-translate-y)), and its.transformutility no longer covers translation — it composes only rotate/skew. So the slide offset was never interpolated: the panel snapped to its final position while only the fade played, and the swap read as a pop. Tailwind's owntransition-transformexpands totransform, translate, scale, rotatefor exactly this reason.Adding
translateto the list fixes it. The preset is shared, so this also fixes the Calendar month strip that renders through it.Tests
Full webkit suite green (83 files / 1693 passing, 6 skipped), eslint +
vue-tscclean.<Transition>is stubbed by Vue Test Utils, so the rendered animation cannot be asserted from a test. The new test pins the css contract behind it instead — that the transition list namestranslate, not justtransform. Verified independently in real Chromium that without the fix a mid-flight sample already sits at its final value.This is deliberately a contract test rather than a class-string assertion: the value under test is the return of
getTabViewPanelTransitionStyle(), a public preset, not a Tailwind class on some element.Visual regression
No baseline movement expected. The runner freezes animations to 1ms and screenshots the settled state, so a slide and a pop are pixel-identical once settled — which is precisely why this defect needed a unit-level contract test to be caught at all. The 12 existing
components-navigation-tabview--*snapshots should come back unchanged; if any of them move, that is a signal worth investigating rather than a baseline to accept.No regeneration dispatch needed.
Notes
fix/calendar-field-parity. That branch restructures the Calendar month strip to slide, and it renders through this preset — without this fix the month swap still reads as a fade. Both are independently correct and green, so the order only affects whether the Calendar animation lands complete.panel changerow to the tab-view spec's animation table, which had no entry for it.